import request from '@/utils/request'

// 查询数据集工况列表
export function listCondition(query) {
  return request({
    url: '/bearingData/condition/list',
    method: 'get',
    params: query
  })
}

// 查询数据集工况详细
export function getCondition(cid) {
  return request({
    url: '/bearingData/condition/' + cid,
    method: 'get'
  })
}

// 新增数据集工况
export function addCondition(data) {
  return request({
    url: '/bearingData/condition',
    method: 'post',
    data: data
  })
}

// 修改数据集工况
export function updateCondition(data) {
  return request({
    url: '/bearingData/condition',
    method: 'put',
    data: data
  })
}

// 删除数据集工况
export function delCondition(cid) {
  return request({
    url: '/bearingData/condition/' + cid,
    method: 'delete'
  })
}
